var e = getApp();

Page({
    data: {},
    onLoad: function(o) {
        e.global.isLogin() ? wx.switchTab({
            url: "/pages/index/index"
        }) : wx.redirectTo({
            url: "".concat(decodeURIComponent(o.redirectTo), "?shareFrom=").concat(o.shareFrom)
        });
    },
    onReady: function() {}
});